<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $title;?></title>
</head>
<!--<body>                                      -->
<?php
 /*if($peserta != NULL):
    $display = 30;

    // inisialisasi variabel page
    $page = 1;

    // mengatur data dalam array
    foreach($peserta as $pesertaBagi):
        $arrdata[] = $pesertaBagi;
    endforeach;

    if(($jumlah % $display)==0){
		$total = (int)($jumlah/$display);
	}else{
		$total = ((int)($jumlah/$display)+1);
	}
    endif;
    */
?>
<body onload="window.print()">
<?php /*
if($peserta != NULL):
for($page=1;$page<=$total;$page++)
{
    $start 	= ($page * $display) - $display;
	$view 	= array_slice($arrdata,$start,$display);
	$end 	= $display * $page;
    */
?>
<table width="100%" border="0">
  <tr>
    <td ><img height="120" width="120" src="<?php echo base_url().'images/r4.png' ?>"></td>
    <td align="center" valign="top">
    <table width="100%">
      <tr><td><img src="<?php echo base_url().'images/header_cetak_atas.png' ?>"></td></tr>
      <tr><td><img src="<?php echo base_url().'images/header_cetak_bawah.png' ?>"></td></tr>
    </table>
   </td>
  </tr>
  <tr>
    <td colspan="2"><hr size="5" color="#000" /></td>
  </tr>
</table>
<div class="text">
<div align="center">
   <div class="data_mhs">
   <table border="0" cellspacing="0" cellpadding="0">
     <tr align="center">
       <td width="800" style="font-family: Times New Roman;font-weight: bold;font-size: 180%; border-collapse: collapse"><u>KARTU RENCANA STUDI</u></td>
     </tr>
   </table>  <br />
      <table align="left" class="uiTableList" cellpadding="5" cellspacing="0" border="0">
		 <tbody style="font-family: Times New Roman">
		 	<tr>
                <td width="150">Nama Mahasiswa</td>
                <td width="20" align="center">:</td>
                <td width="300"><?php echo $dataMhs->NAMA; ?></td>
                <td width="150">No. Induk Mahasiswa</td>
                <td width="20" align="center">:</td>
                <td width="300"><?php echo $dataMhs->NIM; ?></td>
            </tr>
            <tr>
                <td>Fakultas</td>
                <td align="center">:</td>
                <td><?php echo $dataprodi->NAMA_FAKULTAS;?></td>
                <td>Semester</td>
                <td align="center">:</td>
                <td><?php echo $this->system_model->getSemesterSkrg($dataMhs->NIM,$dataprodi->KODE_TAHUN,$dataprodi->KODE_SEMESTER); ?></td>
            </tr>
            <tr>
                <td>Jurusan</td>
                <td align="center">:</td>
                <td><?php echo $dataprodi->NAMA_PRODI; ?></td>
                <td>Tahun Akademik</td>
                <td align="center">:</td>
                <td><?php echo $dataprodi->TAHUN_AJARAN; ?></td>
            </tr>
            <tr>
                <td>Jenis Kelamin</td>
                <td align="center">:</td>
                <td><?php echo ucwords(strtolower($dataMhs->JENIS_KELAMIN)); ?></td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
		 </tbody>
	 </table>  <br />
     <br />
     <?php if($krs): ?>
     <table width="900" style="border-collapse: collapse;" border="1" cellspacing="0">
        <thead style="font-family:Times New Roman;font-size: 10pt;background-color: #E0E0E0">
          <tr height="40" style="border: solid 1.5pt black">
            <th width="40" style="border: solid 1.5pt black">No. Urut</th>
            <th width="400" style="border: solid 1.5pt black">Mata Kuliah</th>
            <th width="120" style="border: solid 1.5pt black">Kode MK</th>
            <th width="90" style="border: solid 1.5pt black">K</th>
            <th width="400" style="border: solid 1.5pt black">Dosen Pembina Mata Kuliah</th>
            <th width="120" style="border: solid 1.5pt black">Ket</th>
          </tr>
        </thead>
        <tbody align="center" style="font-family:Times New Roman;font-size: 10pt;">

        <?php
        $seq=1;
        $tot=0;
        foreach($krs as $dataKrs):?>
        <tr height="25">
            <td style="border: solid 1.5pt black"><?php echo $seq;?></td>
            <td align="left"  style="border: solid 1.5pt black;border-left: none"><?php echo $dataKrs->NAMA_MK;?></td>
            <td style="border: solid 1.5pt black"><?php echo $dataKrs->KODE_MK;?></td>
            <td style="border: solid 1.5pt black"><?php echo $dataKrs->SKS;?></td>
            <td style="border: solid 1.5pt black"><?php echo $dataKrs->NAMA_DOSEN;?><?php if($dataKrs->GELAR!=NULL) echo ", ".$dataKrs->GELAR;?></td>
            <td style="border: solid 1.5pt black">&nbsp;</td>
        </tr>
         <?php $seq++;
         $tot=$tot+$dataKrs->SKS;   
         endforeach;
         ?>
         <tr>
            <td colspan="3" style="border: solid 1.5pt black" align="right"><b>Jumlah SKS Diambil</b></td>
            <td style="border: solid 1.5pt black"><?php echo $tot;?></td>
            <td colspan="2" style="border: solid 1.5pt black">&nbsp;</td>
        </tr>
     </table>
     <br />
     <? else :?>
     <br /><br />
     <table width="900" style="border-collapse: collapse;" border="1" cellspacing="0" >
        <tr>
        <td align="center" style="font-weight: bolder">Maaf, data tidak tersedia.</td>
        </tr>
     </table>
     <br />
     <? endif;?>
     <br />
     <table align="left" style="font-family: Times New Roman;font-size: 12pt;">
        <tr>
            <td width="300">&nbsp;</td>
            <td width="300">&nbsp;</td>
            <td width="300"><b>Mataram, </b> <?php echo $this->date_converter->converter_to_indonesian_date(date("Y-m-d")); ?></td>
        </tr>
        <tr style="font-weight: bold">
            <td>Ketua / Sekretaris Jurusan,</td>
            <td>Dosen Pembimbing Akademik,</td>
            <td>Mahasiswa,</td>
        </tr>
        <tr height="100" valign="bottom">
            <td><?php echo "( ".$dataprodi->KAPRODI." )";?></td>
            <td><?php echo "( ".$dataMhs->DOSEN_PEMBIMBING;?><?php if($dataMhs->GELAR!=NULL) echo ", ".$dataMhs->GELAR;?><?php echo " )";?></td>
            <td><?php echo "( ".$dataMhs->NAMA." )"; ?></td>
        </tr>
     </table>
      <?php if($dataMhs == NULL): ?>
     <div style="width:500px">
          <div id="p_messages_error">
           Maaf, data tidak tersedia.
          </div>
      </div>
     <?php
     endif; ?>

   </div>
</div>
</div>
</body>
</html>